<?php /* Smarty version 2.6.18, created on 2016-12-14 10:33:06
         compiled from score/score.tplist.tpl.php */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.left.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <!--树状图-->
        <section class="col-lg-2 connectedSortable" style="padding-right:0;">
         <div class="sidebar" style="background-color:#fff; padding-bottom:0px;">
             <ul class="sidebar-menu" id="chan">
					<?php $_from = $this->_tpl_vars['grade_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                    <li class="treeview <?php if ($this->_tpl_vars['grade_id'] == $this->_tpl_vars['value']['grade_id']): ?>active<?php endif; ?>">
                      <a href="index.php?a=score.tplist&grade_id=<?php echo $this->_tpl_vars['value']['grade_id']; ?>
"> <i class="glyphicon glyphicon-align-left"></i> <span><?php echo $this->_tpl_vars['value']['grade_name']; ?>
</span>  </a>    
                    </li>
					<?php endforeach; endif; unset($_from); ?>
              </ul>
            </div>
          
        </section>
        <!--树状图结束-->
        <section class="col-lg-10 connectedSortable">
         <div class="box box-default box-solid">
             <form action="" method="post">	
                <div class="box-header with-border">
                    <a href="index.php?a=score.tplist&grade_id=<?php echo $this->_tpl_vars['grade_id']; ?>
&tp_type=1" class="btn <?php if ($this->_tpl_vars['tp_type'] == '1'): ?>btn-primary<?php else: ?>btn-default<?php endif; ?> btn-sm">上级表模</a>
                    <a href="index.php?a=score.tplist&grade_id=<?php echo $this->_tpl_vars['grade_id']; ?>
&tp_type=2" class="btn <?php if ($this->_tpl_vars['tp_type'] == '2'): ?>btn-primary<?php else: ?>btn-default<?php endif; ?>  btn-sm">校内报模</a>
                    <a href="index.php?a=score.tpadd&grade_id=<?php echo $this->_tpl_vars['grade_id']; ?>
&tp_type=<?php echo $this->_tpl_vars['tp_type']; ?>
" class="btn btn-primary btn-sm" style="float:right;">新 增</a>
                </div>
                <div class="box-body">
                      <table class="table table-bordered" id="mytable">     
                            <thead>
                               <tr style="background-color:#fcb53f;">
                                   <td>学科</td>
                                   <td>考试</td>
                                   <td>统计表项目</td>
                                   <td>分析行名称</td>
                                   <td width="110">操作</td>
                               </tr>
                            </thead>
								<?php $_from = $this->_tpl_vars['tp_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                <tr>
                                   <td><?php echo $this->_tpl_vars['value']['subject_name']; ?>
</td>
                                   <td><?php echo $this->_tpl_vars['value']['exam_name']; ?>
</td>
                                   <td><?php echo $this->_tpl_vars['value']['stat_name']; ?>
</td>
                                   <td><?php echo $this->_tpl_vars['value']['note_name']; ?>
</td>
                                   <td>
                    					<a href="index.php?a=score.tpdel&tp_id=<?php echo $this->_tpl_vars['value']['tp_id']; ?>
&grade_id=<?php echo $this->_tpl_vars['grade_id']; ?>
&tp_type=<?php echo $this->_tpl_vars['tp_type']; ?>
"  title="删除" class="btn btn-danger btn-sm" onclick="if(confirm('警告！确认删除信息?')==false)return false;"> <i class="fa fa-trash"></i> </a>
                                   </td>
                               </tr>
								<?php endforeach; endif; unset($_from); ?>
                      </table>
				</div><!--box-body -->
                
              </form>
           </div><!--box box-default box-solid-->
         </section>   
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>